package com.homestay.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.homestay.beans.HouseInfoBean;
import com.homestay.dao.IHouseInfoDao;
import com.homestay.service.IHouseInfoService;
import com.homestay.vo.PageInfo;

@Service("houseInfoService")
public class HouseInfoServiceImpl implements IHouseInfoService{

	@Autowired
	private IHouseInfoDao houseInfoDao;
	
	@Override
	public int getHouseTotalCount(PageInfo<HouseInfoBean> pageInfo) {
		
		return houseInfoDao.getHouseTotalCount(pageInfo);
	}

	@Override
	public List<HouseInfoBean> getHouseByPage(PageInfo<HouseInfoBean> pageInfo) {
		
		return houseInfoDao.getHouseByPage(pageInfo);
	}

	@Override
	public List<Map<String, Object>> getLocation() {
	
		return houseInfoDao.getLocation();
	}

}
